<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>teacher_add</title>
    <link href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</head>
<body>
<br>
<br><br>
<div class="ui four column centered grid">
    <div class="column">
        <form action="/teacher_add" class="ui form" method="post">
            <div class="field">
                <label>用户名</label>
                <input name="name" placeholder="用户名" type="text">
            </div>
            <div class="field">
                <label>密码</label>
                <input name="password" placeholder="密码" type="text">
            </div>
            <div class="field">
                <label>性别</label>
                <input checked="checked" name="sex" type="radio" value="M">M
                <input name="sex" type="radio" value="F">F
            </div>
            <div class="field">
                <label>年龄</label>
                <input name="age" type="number">
            </div>
            <div class="field">
                <label>授课科目</label>
                <div class="ui radio checkbox" th:each="subject,it:${subjects}">
                    <input name="subject" th:value="${subject.id}" type="radio">
                    <label th:text="${subject.name}">单选选择</label>
                </div>
            </div>
            <button class="ui blue button" type="submit">提交</button>
            <a class="ui red button" th:href="@{/teacher_index}">返回</a>
        </form>
    </div>
</div>

</body>
</html>
